/**
 Copyright will be fixed soon.
 Author: Hiroshi Ota.
 $Date: $
 $Revision: $
*/

#include "BFState.h"

BFState::BFState(void)
:	currentStairingDir(SD_OFF),
	currentStairingLevel(0),
	currentDriveDir(DD_OFF),
	currentDriveLevel(0),
	currentLightSensorLevel(0),
	touchSensorPressed(false),
	cSysState(SS_NONE)
{
}

BFState::BFState(BFState& src)
{
	copy(&src);
}

BFState::~BFState(void)
{
}

void BFState::copy(BFState *src)
{
	cSysState = src->cSysState;
	currentStairingDir = src->currentStairingDir;
	currentStairingLevel = src->currentStairingLevel;
	currentDriveDir = src->currentDriveDir;
	currentDriveLevel = src->currentDriveLevel;
	currentLightSensorLevel = src->currentLightSensorLevel;
	touchSensorPressed = src->touchSensorPressed;

}

